#{extends 'template/main.html' /}
#{set title:'Nutricionista' /}


<fieldset>
<legend><span class="glyphicon glyphicon-plus"></span> #{if nutricionista?.id}Editar #{/if}
	#{else}Adicionar#{/else} Nutricionista</legend>

<div class="panel panel-success">
  <div class="panel-heading">
  	<h4><span class="glyphicon glyphicon-list-alt"></span> Dados</h4>
  </div>
  <div class="panel-body">
<form class="form-horizontal" role="form" action="@{Nutricionistas.salvar()}">
<input type="hidden" name="nutricionista.id" value="${nutricionista?.id}" />
  <div class="form-group">
    <label for="inputNome1" class="col-lg-2 control-label">Nome</label>
    <div class="col-lg-5">
      <input type="text" class="form-control" id="inputNome1" placeholder="Nome" name="nutricionista.nome" value="${nutricionista?.nome}">      
    </div>
    <span class="label label-danger">#{error 'nutricionista.nome' /}</span>
  </div>
  <div class="form-group">
    <label for="inputCpf1" class="col-lg-2 control-label">CPF</label>
    <div class="col-lg-5">
      <input type="text" class="form-control" id="inputCpf1" placeholder="CPF" name="nutricionista.cpf" value="${nutricionista?.cpf}">
   </div>
   <span class="label label-danger">#{error 'nutricionista.cpf' /}</span>  
  </div>
  <div class="form-group">
    <label for="inputTelefone1" class="col-lg-2 control-label">Telefone</label>
    <div class="col-lg-5">
      <input type="text" class="form-control" id="inputTelefone1" placeholder="Telefone" name="nutricionista.telefone" value="${nutricionista?.telefone}">
   </div>
   <span class="label label-danger">#{error 'nutricionista.telefone' /}</span>    
  </div>
  <div class="form-group">
    <label for="inputCelular1" class="col-lg-2 control-label">Celular</label>
    <div class="col-lg-5">
      <input type="text" class="form-control" id="inputCelular1" placeholder="Celular" name="nutricionista.celular" value="${nutricionista?.celular}">
   </div>
   <span class="label label-danger">#{error 'nutricionista.celular' /}</span>    
  </div>
  <div class="form-group">
    <label for="inputEmail1" class="col-lg-2 control-label">Email</label>
    <div class="col-lg-5">
      <input type="email" class="form-control" id="inputEmail1" placeholder="Email" name="nutricionista.email" value="${nutricionista?.email}">
   </div>
   <span class="label label-danger">#{error 'nutricionista.email' /}</span>   
  </div>
  <div class="form-group">
    <label for="inputCrn1" class="col-lg-2 control-label">CRN</label>
    <div class="col-lg-5">
      <input type="text" class="form-control" id="inputCrn1" placeholder="CRN" name="nutricionista.crn" value="${nutricionista?.crn}">
   </div> 
   <span class="label label-danger">#{error 'nutricionista.crn' /}</span>  
  </div>
  <div class="form-group">
    <label for="inputLogin1" class="col-lg-2 control-label">Login</label>
    <div class="col-lg-5">
      <input type="text" class="form-control" id="inputLogin1" placeholder="Login" name="nutricionista.login" value="${nutricionista?.login}">
   </div>  
   <span class="label label-danger">#{error 'nutricionista.login' /}</span> 
  </div>
  <div class="form-group">
    <label for="inputSenha1" class="col-lg-2 control-label">Senha</label>
    <div class="col-lg-5">
      <input type="text" class="form-control" id="inputSenha1" placeholder="Senha" name="nutricionista.senha" value="${nutricionista?.senha}">
   </div>  
   <span class="label label-danger">#{error 'nutricionista.senha' /}</span> 
  </div><br/>
  <div class="form-group">
    <div class="col-lg-offset-2 col-lg-10">
      <a href="@{Administradores.index()}" class="btn btn-default"><span class="glyphicon glyphicon-remove"></span> Cancelar</a>
      <button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-floppy-disk"></span> Salvar</button>
    </div>
  </div>
  <br/>
  </form>
  </div>
  </div>
 </fieldset>


	